<?php
session_start();
$_SESSION["initial_start"]=true;
$pos = strpos($_SERVER["PHP_SELF"],"/",1);
define('LOCAL_PATH',$_SERVER["DOCUMENT_ROOT"].substr($_SERVER["PHP_SELF"],0,$pos).'/');

//echo LOCAL_PATH;
define('SMARTY_DIR', LOCAL_PATH."smarty/");
mysql_connect("localhost","root","");
mysql_select_db("pgk");

require_once(SMARTY_DIR."Smarty.class.php");
$smarty = new Smarty();
?>
